<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>福青資訊系統</title>
<style tye="text/css">
<!--
.pixeltable{
border:1px solid #000;		
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
function check(f)
{
  var check=1;
  var msg1="";
for (var i=0;i<f.elements.length;i++) {   
       var e = f.elements[i];   
          if (e.value == "") {     
             msg1=msg1+e.getAttribute("fieldname")+","; 
		  }
	}
	
	if(msg1 !=""){
	  alert(msg1 + "欄位未填");
	  check=0;
	}
	
	if(check==1){
	   document.login.submit();	
	}


}
</script>
</head>

<body>
<form name="login" method="post" action="login_check.php">
<table>
<tr>
<td>
  <img src="pics/title.png" width="487" height="127" /></td>
</tr>
</table>
<table border="0" class="pixeltable">
 <tr>
 <td></td>
 <td><a href="mailto:dlcheng@gmail.com">有問題請洽管理員</a></td>
 </tr>
  <tr>
    <td>LOGIN</td>
  </tr>
  <tr>
    <td>ID</td>
    <td><input type="text" name="id" size="10" fieldname="ID"></td> 
  </tr>
  <tr>
     <td>Password</td>
    <td><input type="password" name="ps" size="15" fieldname="Password"></td> 
  </tr>
  <tr height="44">
  <td>       
  </td>
  <td> 
  <?
  
  switch ($_GET['mg']){
	case '1':  
	  echo "<font color='red'>帳號審核中 請靜待email通知</font>"; 
	  break;
	
	case '2':
	  echo "<font color='red'>帳號或密碼輸入不正確</font>";
	  break;
	
	default:
	  break;
  }
  ?>
       </td>
  </tr>
  <tr>
  <td>
    <a href="apply.php">申請帳號</a></td>
  <td><input type="button" value="login" onclick="javascript:check(document.login)"></td>
  </tr>
</table>
</form>
</body>
</html>
